package com.cloudbroker.bcs.platform.ltb.middle.extservice.push.impl;

import com.cloudbroker.bcs.common.entity.HSBCPSBackVO;
import com.cloudbroker.bcs.csvc.push.api.t2service.PushT2Service;
import com.cloudbroker.bcs.csvc.push.api.vo.request.*;
import com.cloudbroker.bcs.csvc.push.api.vo.response.*;
import com.cloudbroker.bcs.platform.ltb.middle.extservice.push.PushExtService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by daibd19671 on 2016/9/11.
 */
@Service
public class PushExtServiceImpl implements PushExtService{

    @Resource
    private PushT2Service pushT2Service;

    @Override
    public TagAliasBack getDeviceTagAlias(DeviceTagAliasVo deviceTagAliasVo) {
        return pushT2Service.getDeviceTagAlias(deviceTagAliasVo);
    }

    @Override
    public HSBCPSBackVO updateDeviceTagAlias(UpdateDeviceTagAliasVo updateDeviceTagAliasVo) {
        return pushT2Service.updateDeviceTagAlias(updateDeviceTagAliasVo);
    }

    @Override
    public HSBCPSBackVO addRemoveDevicesFromTag(AddRemoveTagVo addRemoveTagVo) {
        return pushT2Service.addRemoveDevicesFromTag(addRemoveTagVo);
    }

    @Override
    public PushBack sendAllNotificationWithTag(PushTagVo pushTagVo) {
        return pushT2Service.sendAllNotificationWithTag(pushTagVo);
    }

    @Override
    public PushBack sendAllNotificationWithAlias(PushAliasVo pushAliasVo) {
        return pushT2Service.sendAllNotificationWithAlias(pushAliasVo);
    }

    @Override
    public PushBack sendAllNotificationWithRegId(PushRegIdVo pushRegIdVo) {
        return pushT2Service.sendAllNotificationWithRegId(pushRegIdVo);
    }

    @Override
    public PushBack sendNotificationAll(PushAllVo pushAllVo) {
        return pushT2Service.sendNotificationAll(pushAllVo);
    }

    @Override
    public HSBCPSBackVO enableSchedulePush(EnableDisableScheduleVo form) {
        return pushT2Service.enableSchedulePush(form);
    }

    @Override
    public HSBCPSBackVO disableSchedulePush(EnableDisableScheduleVo form) {
        return pushT2Service.disableSchedulePush(form);
    }

    @Override
    public HSBCPSBackVO updateSchedulePush(UpdateScheduleVo form) {
        return pushT2Service.updateSchedulePush(form);
    }

    @Override
    public PushReportBack getPushReport(PushReportVo form) {
        return pushT2Service.getPushReport(form);
    }
}
